package com.cskaoyan.bean.bo.promotionbo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class MarketTopicBo {
    private Integer id;
    @NotNull
    private String title;
    @NotNull
    private String subtitle;
    @Min(0)
    private BigDecimal price;

    private String readCount;

    private String picUrl;
    @Min(0)
    private Integer sortOrder;

    private Integer[] goods;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date addTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private Boolean deleted;
    @NotNull
    private String content;


}
